import { Component, OnInit } from "@angular/core";
import { CheckService } from "./check.service";
import { Router, ActivatedRoute } from "@angular/router";
@Component({
  selector: "app-check",
  templateUrl: "./check.component.html",
  styleUrls: ["./check.component.scss"],
  providers: [CheckService]
})
export class CheckComponent implements OnInit {
  public operate = "edit";

  public nFundNo: any;

  // 信息
  public manageInfo;

  constructor(
    public router: Router,
    private route: ActivatedRoute,
    public checkService: CheckService
  ) {}
  ngOnInit() {
    this.route.params.subscribe((data: any) => {
      this.nFundNo = data.nFundNo;
      this.operate = data.operate;
    });
    this.GetManageInfo();
  }

  // 查询基本管理条目
  GetManageInfo(){
    let that = this;
    let parameter ={
      pageIndex:1,
      pageSize:10,
      nFundNo:that.nFundNo
    }
    this.checkService.GetManageInfo(that.nFundNo).subscribe(data => {
      if (data) {
        that.manageInfo = data.list;
        }
    })
  }
}
